From: Don Slutz Date: Wed, 11 Feb 2015 16:20:30 +0000 (+0100) Subject: x86/HVM: IOREQ_TYPE_PCI_CONFIG shouldn't reach hvm_complete_assist_req() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3769 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=e57ce42b225e0f9b8794ce2ee8ade15baf5992c2;p=xen.git x86/HVM: IOREQ_TYPE_PCI_CONFIG shouldn't reach hvm_complete_assist_req() Suggested-by: Paul Durrant Signed-off-by: Don Slutz Reviewed-by: Paul Durrant --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 3051e2af26..a917fe83b5 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -2659,6 +2659,9 @@ static bool_t hvm_complete_assist_req(ioreq_t *p) { switch ( p->type ) { + case IOREQ_TYPE_PCI_CONFIG: + ASSERT_UNREACHABLE(); + break; case IOREQ_TYPE_COPY: case IOREQ_TYPE_PIO: if ( p->dir == IOREQ_READ )